<?php

namespace Classes;

use Classes\db\DBConnection;
use PDO;
use Exception;
use Classes;

class Club {
	public static function getClub($club_id) {
		$connection = DBConnection::getDBConnection ();
		
		$statement = "SELECT *
						FROM `club`
						WHERE club_id=:CLUB_ID";
		$stmt = $connection->prepare ( $statement );
		$stmt->bindValue ( ":CLUB_ID", $club_id, \PDO::PARAM_INT );
		$stmt->execute ();
		$result = $stmt->fetchAll ();
		return $result[0];
	}
}